<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    
    <head>
        <meta charset="utf-8">
        <title>X-admin v1.0</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="stylesheet" href="/woniu/Public/X-admin/css/x-admin.css" media="all">
    </head>
    
    <body>
        <div class="x-body">
            <form class="layui-form" method="post" action="/woniu/index.php/Home/Role/doassign" >
            	<input type="hidden" name="id" value="<?php echo ($list['id']); ?>" >
				
				<div class="layui-form-item">
                    <label for="username" style="font-size:24px" >为<?php echo ($list['name']); ?>分配权限</label>
                </div>
                
                <table>
                    <?php if(is_array($info)): foreach($info as $key=>$rows): ?><!-- <?php echo ($i++); ?> -->
                        <span style="display:inline-block;width:250px;padding:5px;" >
                        <input type="checkbox" name="node[]" value="<?php echo ($rows['id']); ?>" <?php if(in_array($rows['id'],$ro_nodes) == true): ?>checked<?php endif; ?> ><?php echo ($rows['remark']); ?>
                        <!-- <input type="checkbox" name="node[]" value="<?php echo ($rows['id']); ?>" checked><?php echo ($rows['remark']); ?> -->
                        </span>
                        <?php if($i%4 == 0 ): ?><br><?php endif; endforeach; endif; ?>
                </table>

                <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label"></label>
                    <button  class="layui-btn" lay-filter="add" lay-submit="">提交</button>
                </div>
            </form>
        </div>
        <script src="/woniu/Public/X-admin/lib/layui/layui.js" charset="utf-8">
        </script>
        <script src="/woniu/Public/X-admin/js/x-layui.js" charset="utf-8">
        </script>
        <script>

            layui.use(['form','layer'], function(){
                $ = layui.jquery;
              var form = layui.form();
              layer = layui.layer;

            }); 
        </script>
    </body>

</html>